package AC;

public class Yaokong {
    private int weight;
    private String fanwei;
    private String color;

    public Yaokong(){}
    public Yaokong(int weight, String fanwei, String color) {
        this.weight = weight;
        this.fanwei = fanwei;
        this.color = color;
    }
    public void kai(TV k){
        k.open();
    }
    public void guan(TV g){
        g.close();
    }
    public void huan(TV h){
        h.huantai();
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getFanwei() {
        return fanwei;
    }

    public void setFanwei(String fanwei) {
        this.fanwei = fanwei;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
